package com.xjh;

import cn.hutool.http.HttpUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:XuJianHua
 * @Date:2023/2/17
 * @Description:
 */
public class ss {
    public static void main(String[] args) {
        String mnp = "13*0*0";
        List<Integer> ind=new ArrayList<>();
        for (int i=0;i<mnp.length();i++){
            if(mnp.charAt(i)=='*'){
                ind.add(i);
            }
        }
        System.out.println(ind);
        StringBuilder sb = new StringBuilder(mnp);
        for (Integer i: ind) {
            sb.replace(i,i+1," ");
        }
        System.out.println(sb);
        try {  HttpUtil.post("http://localhost:8080","test");} catch (Exception e){
            System.out.println("请求货架服务失败:"+e.getMessage());
        }

    }
}
